#include <eku/stdio.h>
#include <eku/system.h>
#include <eku/timer.h>
#include <eku/proc.h>
#include <eku/sync.h>

static void
test_process(void *_arg)
{
	 printf("hello module world %d\n", cur_pid());
	 printf("wait for 1s\n");
	 
	 wait_pretend();
	 timer_t t = timer_open_ms(cur_pid(), 1000);
	 wait_try();

	 printf("hello module world again %d\n", cur_pid());
}

static int module_load(void)
{
	 process_create(&test_process, NULL, 8192);
	 return 0;
}

static int module_unload(void)
{
	 return 0;
}
